'use strict';
exports.main = async (event, context) => {
	//event为客户端上传的参数
	console.log('event : ', event)
	        // "url": "https://api.github.com/users/cxyxxx0924",
	const url = 'https://api.github.com/users/cxyxxx0924'
	const {data} = await uniCloud.httpclient.request(url, {
		dataType: 'json',
		contentType: 'json'
	})
	console.log('data', data)
	//返回数据给客户端
	return {
		code: 0,
		data: data
	}
};
